"""
利用Python进行数据分析

读写文本格式的数据

pandas
"""
from lxml.html import parse
from urllib import request


def read_test_01():
    """
    XML和HTML：Web信息收集
    :return:
    """
    parsed = parse(request("http://finance.yahoo.com/q/op?s=AAPL+Options"))
    doc = parsed.getroot()
    links = doc.finall('.//a')
    print(links)


def main():
    read_test_01()


if __name__ == '__main__':
    main()
